package com.alex.senior1.week1.dao;

import org.apache.ibatis.annotations.Param;

import com.alex.senior1.week1.domain.TbGoods;
import com.alex.senior1.week1.vo.GoodsVo;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;

/**
 * <p>
 * 商品表 Mapper 接口
 * </p>
 *
 * @author alex
 * @since 2019-11-01
 */
public interface TbGoodsMapper extends BaseMapper<TbGoods> {
	public IPage<GoodsVo> getGoodsByPageAndName(IPage<GoodsVo> page, @Param(Constants.WRAPPER)QueryWrapper<GoodsVo> queryWrapper);
	
	public GoodsVo getGoodsById(@Param(Constants.WRAPPER)QueryWrapper<GoodsVo> queryWrapper);
}
